<?php

$foo=$_GET["userid"];

include("mysql_conn.php");

$result=mysql_query("select * from users where userid='$foo'");
$data=mysql_fetch_array($result);

?> 

<html>
<head><title>ITG Project Status: Edit User</title>
<link rel='stylesheet' type='text/css' href='style.css'>
</head><body>
<h3>Edit User</h3>
<form action="useredit-do.php" method="post">
<table cellpadding=1>
<tr><th>
<input type="hidden" name="userid" value="<? print $data['userid'] ?>">
Username: </th><td><input type="text" name="username" value="<? print $data['username'] ?>"></td></tr>
<tr><th>Full Name: </th><td><input type="text" name="fullname" value="<? print $data['fullname'] ?>"></td></tr>
<tr><th>Email: </th><td><input type="text" name="email" value="<? print $data['email'] ?>"></td></tr>
<!-- password? --!>
<tr><th>Active: <small>(required)</small></th><td><input type="radio" name="active" value="1"> Yes <input type="radio" name="active" value="0"> No </td></tr>
<tr><th>Admin: <small>(required)</small></th><td><input type="radio" name="admin" value="1"> Yes <input type="radio" name="admin" value="0"> No </td></tr>
<tr><th>Supervisor: </th><td><input type="text" name="boss" value="<? print $data['boss'] ?>"></td></tr>
</table>
</table>
<input type="submit" value="Apply"></form>
</body></html>

